<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:65:"F:\NetBeansProjects\forum/application/index\view\index\index.html";i:1494385001;}*/ ?>
<html>
<head>
    <meta charset="UTF-8">
    <title>论坛主页</title>
    <script src="/forum/public/static/js/jquery1.8.3/jquery.min.js"></script>
    <script type="text/javascript">
        var load_user="<?php echo \think\Request::instance()->session('user'); ?>";
        $(document).ready(function () {
            $.post("/forum/index.php/section/index",function (data) {
                $.each(data,function (){
                    $("#forum_list").append("<div class='boxlist'><div class='boximg'><a><img src='/forum/public/static/pic/107.png'/></a></div><div class='boxinfo'><h1><a href='/forum/index.php/thread/thread/thread_list?id="+this.id+"'>"+this.name+"</a></h1></div></div>")

                    //$("#forum_list").append("<div class='boxlist'><div class='boximg'><a><img src='/forum/public/static/pic/107.png'/></a></div><div class='boxinfo'><h1><a href='/forum/index.php/thread/threadm.html?id="+this.id+"'>"+this.name+"</a></h1></div></div>")
                    //$("#column tbody").append("<tr><td height='60px'></td><td><a href='/forum/index.php/thread/thread.html?mid="+this.id+"'>"+this.name+"</a><br>"+this.description+"</td><td></td></tr>");
                });
            },"json");
            if (load_user!==""){
                //var content="<font style='color: white'>论坛列表&nbsp;&nbsp;&nbsp;欢迎："+load_user+"，"+"<a href='/forum/index.php/user/logout'>注销</a></font>";
                $("#load_message").html(load_user+"|<a href='/forum/index.php/user/logout'>注销</a>");
            }
        });
        function search(page) {
            var kw=$("#kw").val();
            window.location.href='/forum/index.php/thread/search/search?kw='+kw
        }
    </script>
    <link rel="stylesheet" href="/forum/public/static/css/forum/index.css">
    <link rel="stylesheet" href="/forum/public/static/css/forum/public.css">
    <link rel="stylesheet" href="/forum/public/static/css/forum/forum.css">
    <link rel="stylesheet" href="/forum/public/static/css/forum/thread.css">
</head>
<body>
<div class="top-bar">
    <div class="main">
        <div class="t_u" id="load_message">
            <a href="/forum/index.php/user/register.html">注册</a>
            |
            <a href="/forum/index.php/user/login.html" id="login">登录</a>
        </div>
    </div>
</div>
<div class="forum_path">
    <input type="text" id="kw" style="width: 40%;">
    <input type="image" src="/forum/public/static/pic/search.jpg" onclick="search()">
</div>
<div class="bbsbox">
    <div class="boxtitle">
        <div class="s_name">
            <a>测试论坛</a>
        </div>
    </div>
    <div id="forum_list">
        <!--
    <div class="boxlist">
        <div class="boximg">
            <a><img src="/forum/public/static/pic/107.png"/></a>
        </div>
        <div class="boxinfo">
            <h1>
                <a href="">ceshi </a>
            </h1>
        </div>
    </div>
    -->
    </div>
</div>
</body>
</html>